package com.levi.service.impl;

import com.levi.pojo.SysMenu;
import com.levi.mapper.SysMenuMapper;
import com.levi.service.SysMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author levi
 * @since 2021-06-21
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SysMenuService {


    @Resource
    private SysMenuMapper menuMapper;

    @Override
    public List<SysMenu> menuListByRoleId(Integer roleId) {
        return menuMapper.menuListByRoleId(roleId);
    }
}
